package vehicles;

public class ImmutablePoint implements Point {
	private double x, y;

	public ImmutablePoint(double x, double y) {
		this.x = x; 
		this.y = y;
	}
	
	public ImmutablePoint(ImmutablePoint p) {
		this(p.x, p.y);
	}
	
	public double getX() {
		return x;
	}
	
	public double getY() {
		return y;
	}
}
